package com.explore.demo.service;

import com.explore.demo.common.ServerResponse;
import com.explore.demo.pojo.Department;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gaolainan
 * @since 2021-04-18
 */
public interface DepartmentService extends IService<Department> {
    /**
     * 创建一个部门的信息
     * @param department
     * @return
     */
    public ServerResponse addDepartment(Department department);

    /**
     * 通过部门的名称 删除部门的相关信息
     * @param departmentName
     * @return
     */
    public ServerResponse deleteByDepartmentName(String departmentName);

    /**
     * 查询全部部门的信息
     * @return
     */
    public ServerResponse queryAll();

    /**
     * 通过部门的名称 查询部门的相关信息
     * @param departmentName
     * @return
     */
    public ServerResponse queryByDepartmentName(String departmentName);

    /**
     * 更新部门的信息
     * @param department
     * @return
     */
    public ServerResponse updateDepartment(Department department);
}
